const express = require('express')
const app = express()
app.get('/server', (req, res) => {
    // 如果后面是*号 则不能携带cookie
    // res.setHeader('Access-Control-Allow-Origin', '*')
    res.setHeader('Access-Control-Allow-Origin', 'http://127.0.0.1:5555')
    res.send('fdjaklfjdl')
})
app.listen(8000, () => {
    console.log('8000端口已经启动')
})